//
//  BaseAFN.h
//  B段
//
//  Created by 邝子涵 on 15/11/26.
//  Copyright © 2015年 邝子涵. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
typedef void(^AFNData)(id result);
@interface BaseAFN : NSObject

/**
 *  GET解析
 *
 *  @param string URL
 *  @param block  返回任意类型数据
 */
+ (void)GETURLByString:(NSString *)string AFNData:(AFNData)block;


/**
 *  POST解析
 *
 *  @param string URL
 *  @param block  返回任意类型数据
 */
+ (void)POSTURLByString:(NSString *)string bodyByDic:(NSDictionary *)dic AFNData:(AFNData)block;

+ (void)POSTURLByStringB:(NSString *)string bodyByDic:(NSDictionary *)dic AFNData:(AFNData)block;



@end
